package com.ysq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j //可以手动输出日志到控制台
@SpringBootApplication
@ServletComponentScan //要扫描到过滤器
@EnableTransactionManagement //开启事务管理
public class ReggieBaseApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieBaseApplication.class, args);
        //@Slf4j演示
        log.info("SpringBoot项目启动完成~~~");
    }
}
